package com.xc.core.exception;


/**
 * <p>项目名称: Stars</p>
 * <p>描述: 用户操作异常类</p>
 * <P>创建人: 小程</p>
 * <P>创建人邮箱: 779943476@qq.com</p>
 * <p>创建时间: 2019/7/1</p>
 *
 * @version v1.0
 */
public class OperateException extends RuntimeException {

    private String code;
    private String returnMessage;

    public OperateException() {
    }

    /**
     * @param code          国际化代码
     * @param returnMessage 默认错误消息
     */
    public OperateException(String code, String returnMessage) {
        this.code = code;
        this.returnMessage = returnMessage;
    }

    /**
     * @param code          国际化代码
     * @param returnMessage 默认错误消息
     * @param cause         异常信息
     */
    public OperateException(String code, String returnMessage, Throwable cause) {
        super(cause);
        this.code = code;
        this.returnMessage = returnMessage;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getReturnMessage() {
        return returnMessage;
    }

    public void setReturnMessage(String returnMessage) {
        this.returnMessage = returnMessage;
    }
}
